package com.atguigu.jxc.service.impl;

import com.atguigu.jxc.dao.DamageListGoodsDao;
import com.atguigu.jxc.domain.ErrorCode;
import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.domain.SuccessCode;
import com.atguigu.jxc.entity.DamageList;
import com.atguigu.jxc.entity.Goods;
import com.atguigu.jxc.entity.Log;
import com.atguigu.jxc.service.DamageListGoodsSerivce;
import com.atguigu.jxc.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class DamageListGoodsServiceImpl implements DamageListGoodsSerivce {
    @Autowired
    private DamageListGoodsDao damageListGoodsDao;
    @Autowired
    private LogService logService;

//    @Override
//    public ServiceVO save(DamageList damageList, String damageListGoodsStr) {
////        damageListGoodsDao.addDamageList(damageList,damageListGoodsStr);
////        logService.save(new Log(Log.INSERT_ACTION, "添加用户:" + goods.getGoodsName()));
//
//
////        logService.save(new Log(Log.UPDATE_ACTION, "修改用户:" + goods.getGoodsName()));
//
//
//        return new ServiceVO<>(SuccessCode.SUCCESS_CODE, SuccessCode.SUCCESS_MESS);
//    }
}
